package com.zealfi.wk.filebeat.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by kuan at 2018-05-31 下午 3:29
 */
@Component
public class GenerateLogTask {
    private static final Logger log = LoggerFactory.getLogger(GenerateLogTask.class);

    @Scheduled(cron = "5/10 * * * * ?")
    public void generate() {
        log.info("hello");
    }
}
